Optimal. Leaf size=198 \[ -\frac {a^3 e^{-a-b x}}{3 x^3}-\frac {3 a^2 b e^{-a-b x}}{2 x^2}+\frac {a^3 b e^{-a-b x}}{6 x^2}-\frac {3 a b^2 e^{-a-b x}}{x}+\frac {3 a^2 b^2 e^{-a-b x}}{2 x}-\frac {a^3 b^2 e^{-a-b x}}{6 x}+b^3 e^{-a} \text {Ei}(-b x)-3 a b^3 e^{-a} \text {Ei}(-b x)+\frac {3}{2} a^2 b^3 e^{-a} \text {Ei}(-b x)-\frac {1}{6} a^3 b^3 e^{-a} \text {Ei}(-b x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 198, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {2230, 2208,
2209} \begin {gather*} -\frac {1}{6} e^{-a} a^3 b^3 \text {Ei}(-b x)-\frac {a^3 b^2 e^{-a-b x}}{6 x}-\frac {a^3 e^{-a-b x}}{3 x^3}+\frac {a^3 b e^{-a-b x}}{6 x^2}+\frac {3}{2} e^{-a} a^2 b^3 \text {Ei}(-b x)+\frac {3 a^2 b^2 e^{-a-b x}}{2 x}-\frac {3 a^2 b e^{-a-b x}}{2 x^2}-3 e^{-a} a b^3 \text {Ei}(-b x)+e^{-a} b^3 \text {Ei}(-b x)-\frac {3 a b^2 e^{-a-b x}}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2208
Rule 2209
Rule 2230
Rubi steps
\begin {align*} \int \frac {e^{-a-b x} (a+b x)^3}{x^4} \, dx &=\int \left (\frac {a^3 e^{-a-b x}}{x^4}+\frac {3 a^2 b e^{-a-b x}}{x^3}+\frac {3 a b^2 e^{-a-b x}}{x^2}+\frac {b^3 e^{-a-b x}}{x}\right ) \, dx\\ &=a^3 \int \frac {e^{-a-b x}}{x^4} \, dx+\left (3 a^2 b\right ) \int \frac {e^{-a-b x}}{x^3} \, dx+\left (3 a b^2\right ) \int \frac {e^{-a-b x}}{x^2} \, dx+b^3 \int \frac {e^{-a-b x}}{x} \, dx\\ &=-\frac {a^3 e^{-a-b x}}{3 x^3}-\frac {3 a^2 b e^{-a-b x}}{2 x^2}-\frac {3 a b^2 e^{-a-b x}}{x}+b^3 e^{-a} \text {Ei}(-b x)-\frac {1}{3} \left (a^3 b\right ) \int \frac {e^{-a-b x}}{x^3} \, dx-\frac {1}{2} \left (3 a^2 b^2\right ) \int \frac {e^{-a-b x}}{x^2} \, dx-\left (3 a b^3\right ) \int \frac {e^{-a-b x}}{x} \, dx\\ &=-\frac {a^3 e^{-a-b x}}{3 x^3}-\frac {3 a^2 b e^{-a-b x}}{2 x^2}+\frac {a^3 b e^{-a-b x}}{6 x^2}-\frac {3 a b^2 e^{-a-b x}}{x}+\frac {3 a^2 b^2 e^{-a-b x}}{2 x}+b^3 e^{-a} \text {Ei}(-b x)-3 a b^3 e^{-a} \text {Ei}(-b x)+\frac {1}{6} \left (a^3 b^2\right ) \int \frac {e^{-a-b x}}{x^2} \, dx+\frac {1}{2} \left (3 a^2 b^3\right ) \int \frac {e^{-a-b x}}{x} \, dx\\ &=-\frac {a^3 e^{-a-b x}}{3 x^3}-\frac {3 a^2 b e^{-a-b x}}{2 x^2}+\frac {a^3 b e^{-a-b x}}{6 x^2}-\frac {3 a b^2 e^{-a-b x}}{x}+\frac {3 a^2 b^2 e^{-a-b x}}{2 x}-\frac {a^3 b^2 e^{-a-b x}}{6 x}+b^3 e^{-a} \text {Ei}(-b x)-3 a b^3 e^{-a} \text {Ei}(-b x)+\frac {3}{2} a^2 b^3 e^{-a} \text {Ei}(-b x)-\frac {1}{6} \left (a^3 b^3\right ) \int \frac {e^{-a-b x}}{x} \, dx\\ &=-\frac {a^3 e^{-a-b x}}{3 x^3}-\frac {3 a^2 b e^{-a-b x}}{2 x^2}+\frac {a^3 b e^{-a-b x}}{6 x^2}-\frac {3 a b^2 e^{-a-b x}}{x}+\frac {3 a^2 b^2 e^{-a-b x}}{2 x}-\frac {a^3 b^2 e^{-a-b x}}{6 x}+b^3 e^{-a} \text {Ei}(-b x)-3 a b^3 e^{-a} \text {Ei}(-b x)+\frac {3}{2} a^2 b^3 e^{-a} \text {Ei}(-b x)-\frac {1}{6} a^3 b^3 e^{-a} \text {Ei}(-b x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 81, normalized size = 0.41 \begin {gather*} \frac {1}{6} e^{-a} \left (-\frac {a e^{-b x} \left (18 b^2 x^2-9 a b x (-1+b x)+a^2 \left (2-b x+b^2 x^2\right )\right )}{x^3}-\left (-6+18 a-9 a^2+a^3\right ) b^3 \text {Ei}(-b x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 167, normalized size = 0.84
method | result | size |
derivativedivides | \(b^{3} \left (3 a^{2} \left (-\frac {{\mathrm e}^{-b x -a}}{2 b^{2} x^{2}}+\frac {{\mathrm e}^{-b x -a}}{2 b x}-\frac {{\mathrm e}^{-a} \expIntegral \left (1, b x \right )}{2}\right )-a^{3} \left (\frac {{\mathrm e}^{-b x -a}}{3 b^{3} x^{3}}-\frac {{\mathrm e}^{-b x -a}}{6 b^{2} x^{2}}+\frac {{\mathrm e}^{-b x -a}}{6 b x}-\frac {{\mathrm e}^{-a} \expIntegral \left (1, b x \right )}{6}\right )-3 a \left (\frac {{\mathrm e}^{-b x -a}}{b x}-{\mathrm e}^{-a} \expIntegral \left (1, b x \right )\right )-{\mathrm e}^{-a} \expIntegral \left (1, b x \right )\right )\) | \(167\) |
default | \(b^{3} \left (3 a^{2} \left (-\frac {{\mathrm e}^{-b x -a}}{2 b^{2} x^{2}}+\frac {{\mathrm e}^{-b x -a}}{2 b x}-\frac {{\mathrm e}^{-a} \expIntegral \left (1, b x \right )}{2}\right )-a^{3} \left (\frac {{\mathrm e}^{-b x -a}}{3 b^{3} x^{3}}-\frac {{\mathrm e}^{-b x -a}}{6 b^{2} x^{2}}+\frac {{\mathrm e}^{-b x -a}}{6 b x}-\frac {{\mathrm e}^{-a} \expIntegral \left (1, b x \right )}{6}\right )-3 a \left (\frac {{\mathrm e}^{-b x -a}}{b x}-{\mathrm e}^{-a} \expIntegral \left (1, b x \right )\right )-{\mathrm e}^{-a} \expIntegral \left (1, b x \right )\right )\) | \(167\) |
risch | \(-\frac {3 a^{2} b \,{\mathrm e}^{-b x -a}}{2 x^{2}}+\frac {3 a^{2} b^{2} {\mathrm e}^{-b x -a}}{2 x}-\frac {3 b^{3} a^{2} {\mathrm e}^{-a} \expIntegral \left (1, b x \right )}{2}-\frac {a^{3} {\mathrm e}^{-b x -a}}{3 x^{3}}+\frac {a^{3} b \,{\mathrm e}^{-b x -a}}{6 x^{2}}-\frac {a^{3} b^{2} {\mathrm e}^{-b x -a}}{6 x}+\frac {b^{3} a^{3} {\mathrm e}^{-a} \expIntegral \left (1, b x \right )}{6}-\frac {3 a \,b^{2} {\mathrm e}^{-b x -a}}{x}+3 b^{3} a \,{\mathrm e}^{-a} \expIntegral \left (1, b x \right )-b^{3} {\mathrm e}^{-a} \expIntegral \left (1, b x \right )\) | \(176\) |
meijerg | \(b^{3} {\mathrm e}^{-a} \left (-\ln \left (b x \right )-\expIntegral \left (1, b x \right )+\ln \left (x \right )+\ln \left (b \right )\right )+3 b^{3} {\mathrm e}^{-a} a \left (\frac {-2 b x +2}{2 b x}-\frac {{\mathrm e}^{-b x}}{b x}+\ln \left (b x \right )+\expIntegral \left (1, b x \right )+1-\ln \left (x \right )-\ln \left (b \right )-\frac {1}{b x}\right )+3 b^{3} {\mathrm e}^{-a} a^{2} \left (\frac {9 b^{2} x^{2}-12 b x +6}{12 b^{2} x^{2}}-\frac {\left (-3 b x +3\right ) {\mathrm e}^{-b x}}{6 b^{2} x^{2}}-\frac {\ln \left (b x \right )}{2}-\frac {\expIntegral \left (1, b x \right )}{2}-\frac {3}{4}+\frac {\ln \left (x \right )}{2}+\frac {\ln \left (b \right )}{2}-\frac {1}{2 b^{2} x^{2}}+\frac {1}{b x}\right )+{\mathrm e}^{-a} a^{3} b^{3} \left (\frac {-22 b^{3} x^{3}+36 b^{2} x^{2}-36 b x +24}{72 b^{3} x^{3}}-\frac {\left (4 b^{2} x^{2}-4 b x +8\right ) {\mathrm e}^{-b x}}{24 b^{3} x^{3}}+\frac {\ln \left (b x \right )}{6}+\frac {\expIntegral \left (1, b x \right )}{6}+\frac {11}{36}-\frac {\ln \left (x \right )}{6}-\frac {\ln \left (b \right )}{6}-\frac {1}{3 b^{3} x^{3}}+\frac {1}{2 b^{2} x^{2}}-\frac {1}{2 b x}\right )\) | \(298\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 63, normalized size = 0.32 \begin {gather*} -a^{3} b^{3} e^{\left (-a\right )} \Gamma \left (-3, b x\right ) - 3 \, a^{2} b^{3} e^{\left (-a\right )} \Gamma \left (-2, b x\right ) - 3 \, a b^{3} e^{\left (-a\right )} \Gamma \left (-1, b x\right ) + b^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 83, normalized size = 0.42 \begin {gather*} -\frac {{\left (a^{3} - 9 \, a^{2} + 18 \, a - 6\right )} b^{3} x^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} + {\left ({\left (a^{3} - 9 \, a^{2} + 18 \, a\right )} b^{2} x^{2} + 2 \, a^{3} - {\left (a^{3} - 9 \, a^{2}\right )} b x\right )} e^{\left (-b x - a\right )}}{6 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.79, size = 53, normalized size = 0.27 \begin {gather*} \left (- \frac {a^{3} \operatorname {E}_{4}\left (b x\right )}{x^{3}} - \frac {3 a^{2} b \operatorname {E}_{3}\left (b x\right )}{x^{2}} - \frac {3 a b^{2} \operatorname {E}_{2}\left (b x\right )}{x} + b^{3} \operatorname {Ei}{\left (- b x \right )}\right ) e^{- a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.30, size = 183, normalized size = 0.92 \begin {gather*} -\frac {a^{3} b^{3} x^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - 9 \, a^{2} b^{3} x^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} + 18 \, a b^{3} x^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} + a^{3} b^{2} x^{2} e^{\left (-b x - a\right )} - 6 \, b^{3} x^{3} {\rm Ei}\left (-b x\right ) e^{\left (-a\right )} - 9 \, a^{2} b^{2} x^{2} e^{\left (-b x - a\right )} - a^{3} b x e^{\left (-b x - a\right )} + 18 \, a b^{2} x^{2} e^{\left (-b x - a\right )} + 9 \, a^{2} b x e^{\left (-b x - a\right )} + 2 \, a^{3} e^{\left (-b x - a\right )}}{6 \, x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.57, size = 142, normalized size = 0.72 \begin {gather*} 3\,a\,b^3\,{\mathrm {e}}^{-a}\,\left (\mathrm {expint}\left (b\,x\right )-\frac {{\mathrm {e}}^{-b\,x}}{b\,x}\right )-b^3\,{\mathrm {e}}^{-a}\,\mathrm {expint}\left (b\,x\right )+\frac {a^3\,b^3\,{\mathrm {e}}^{-a}\,\mathrm {expint}\left (b\,x\right )}{6}+3\,a^2\,b^3\,{\mathrm {e}}^{-a}\,\left ({\mathrm {e}}^{-b\,x}\,\left (\frac {1}{2\,b\,x}-\frac {1}{2\,b^2\,x^2}\right )-\frac {\mathrm {expint}\left (b\,x\right )}{2}\right )-a^3\,b^3\,{\mathrm {e}}^{-a-b\,x}\,\left (\frac {1}{6\,b\,x}-\frac {1}{6\,b^2\,x^2}+\frac {1}{3\,b^3\,x^3}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________